import { createRoot } from 'react-dom/client'
import App from './App.tsx'
import { Suspense } from 'react'
import {
  HashRouter, // hash 模式 url 有 #， 原理：hashchange 事件监听#后的内容变换切换组件
} from 'react-router-dom'


createRoot(document.getElementById('root')!).render(
  <HashRouter>
    <Suspense fallback={<div style={{ height: 200, fontSize: 20, color: 'blue' }}>loading...</div>}>
      <App />
    </Suspense>
  </HashRouter>
)
